package cn.com.guage.java8;

import java.util.Arrays;
import java.util.List;

public class Java8Tester3 {

	public static void main(String[] args) {
		final Car car = Car.create( Car::new );
		final List< Car > cars = Arrays.asList( car );
		cars.forEach( Car::collide );
		final Car police = Car.create( Car::new );
		cars.forEach( police::follow );
	}

}
